package com.be.beadmin.service.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Getter
@Setter
@Table(name="sys_quartz_job")
public class QuartzJob extends BaseEntity {

    @Column(name = "JobName",columnDefinition = "VARCHAR(50) COMMENT '任务名称' ")
    private String jobName;

    @Column(name = "BeanName",columnDefinition = "VARCHAR(50) COMMENT 'Bean名称' ")
    private String beanName;

    @Column(name = "MethodName",columnDefinition = "VARCHAR(50) COMMENT '方法名称' ")
    private String methodName;

    @Column(name = "Params",columnDefinition = "VARCHAR(50) COMMENT '方法名称' ")
    private String params;

    @Column(name = "CronExpression",columnDefinition = "VARCHAR(50) COMMENT 'cron表达式' ")
    private String cronExpression;

    @Column(name = "Pause",columnDefinition = "bit COMMENT '状态，暂时或启动' ")
    private Boolean isPause = false;

    @Column(name = "PersonInCharge",columnDefinition = "VARCHAR(50) COMMENT '负责人' ")
    private String personInCharge;

    @Column(name = "Email",columnDefinition = "VARCHAR(50) COMMENT '报警邮箱' ")
    private String email;

    @Column(name = "SubTask",columnDefinition = "VARCHAR(50) COMMENT '子任务' ")
    private String subTask;

    @Column(name = "PauseAfterFailure",columnDefinition = "BIT COMMENT '失败后暂停' ")
    private Boolean pauseAfterFailure;

    @Column(name = "Description",columnDefinition = "VARCHAR(50) COMMENT '备注' ")
    private String description;
}
